import request from '@/utils/request'


//在注册时根据邮箱名获取验证码
export function getEmailCode(email) {
    //console.log(email);
  return request({
    url: '/user/signin/getEmailCode',
    method: 'post',
    data: {email}
  })
}

//提交注册
export function register(data) {
     console.log(data)
    //console.log(user)
  return request({
    url: '/user/signin/register',
    method: 'post',
    data
  })
}



